import { MessageBox } from 'mint-ui';

export default {
	alert: (content, title) => {
		return MessageBox.alert(content, title ? title : '');
	},
	confirm: (content, title) => {
		return MessageBox.confirm(content, title ? title : '').then(res => {
			if (res == 'confirm') { res => {} }
		});
	},
	prompt: (content) => {
		return MessageBox.prompt(content).then(({value,action}) => {
			
			if ( action == 'confirm') { value =>{}}
		})
	}
}